package com.hl.qzzpbackend.annotation;
import com.hl.qzzpbackend.model.enums.UserRoleEnum;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Title: AuthCheck
 * @Author helong
 * @Package com.hl.picturebackend.annotation
 * @Date 2024/12/30 11:29
 * @description:
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthCheck {

    /**
     * 必须具有某个角色
     */
    UserRoleEnum[] mustRole();
}

